<?php 
/**
 * second action
 * @author Yuwei
 *
 */
final class secondAction extends BluePhp_Core_Action
{
	/**
	 * 验证码
	 */
	public function verify()
	{
		BluePhp_Library_Gd_Adapter::verify();
		//$_SESSION['verify'];
	}
	
	/**
	 * 以流的方式下载文件
	 */
	public function download()
	{
		$file = '../temporary/upload/test.pdf';
		BluePhp_Library_Common_Adapter::download($file);
	}
	
	/**
	 * 缓存
	 */
	public function cache()
	{
		$key = 'test';
		$value = 'data';
		BluePhp_Library_Cache_Adapter::set($key, $value);
		var_dump(BluePhp_Library_Cache_Adapter::get($key));
	}
}
?>